package com.untrance.shop.core.comparator;

import java.io.Serializable;
import java.util.Comparator;

import com.untrance.shop.model.Category;

/**
 * @author eugene zadyra
 */
public class CategoryLevelComparator implements Comparator<Category>, Serializable{

	private static final long serialVersionUID = 1L;

	@Override
	public int compare(Category o1, Category o2) {
		return (o1.getLevel()-o2.getLevel());
	}


}
